package com.lune.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lune.job.pojo.Student;
import com.lune.job.pojo.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Caiyilin
 * @since 2022-03-06
 */
public interface StudentMapper extends BaseMapper<Student> {

    /**
     * 通过用户查询
     * @param student
     * @return
     */
    List<Student> query(Student student);

    /**
     * 分页查询所有学生
     * @param page
     * @param student
     * @return
     */
    IPage<Student> getAllStudentsByPage(Page<Student> page, Student student);

    /**
     * 条件查询学生用户
     * @param student
     * @return
     */
    List<Student> queryByCon(Student student);
}
